﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestDroidClaim.aspx.cs" Inherits="WebTestDroidClaim.TestDroidClaim" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="Scripts/jquery-1.7.1.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var serviceUrl = "http://localhost:10552/DroidClaimBL.svc/GetCustomer";
            //var ses = new Object();
            //ses.SessionPk = new Object();
            //ses.LicensePlate = "123";
            //document.write(serviceUrl + JSON.stringify(ses));
            //alert(JSON.stringify(ses));
            //$.ajax({
            //    type: "GET",
            //    url: serviceUrl,
            //    data: "",//JSON.stringify(ses),
            //    contentType: "application/json; charset=utf-8",
            //    dataType: "json",
            //    success: function (transport) {
            //        alert(transport);
            //    },
            //    error: function (msg) {

            //        alert('Faild' + msg.status);
            //    }
            //});

            $.ajax({
                type: "POST",
                url: serviceUrl,
                data: "",
                dataType: 'json',
                cache: false,
                success: function (result) {
                    alert("success:" + result);
                },
                error: function (error) {
                    alert("error" + error.statusText);
                }
            });
        });
    </script>
</head>

<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    </form>
</body>
</html>
